<!--
	此示例下载自 https://echarts.apache.org/examples/zh/editor.html?c=dataset-default&theme=dark&code=PYBwLglsB2AEC8sDeAoWsA2BTA5l6AJgFzIC-ANGrGMMBpCCUhVQQIZhsDOWYTV6LsACuAJwDGWEgG0B6WNIDkgWljA_EaBQAMAyAYCw5ReViKATAAYAjAA49Bk6YCcVo8ZMOTh0y6eGPhgMyKAupTy8kqAi56AZtqAbdpW5gBsAHQArPq2hvGm-uaJ8QDsmT7p-jkFACz6idmmgXLoSoBdcoCINoCapoAQelYlpoWwPsbxZbCxleUFPvnx5inmudXBtYqA3MqA-K5WhiVdsTnxhkW2SZkJ_YNbmWmJM7NKgDaKgIVKgBoqVhXHA5sZA7vbsDlp_YkFtvo-XZVOT-KgsQRYUQQLBcGRyVCzagATxAUgMIGhehqsFEbAIEGEsOsxgApFjEZJoGBITIjIkyfpFD0yaDEQB6NmwABywFg-HEwAIWFgXFR4ggADNoQR9AAjJGwIUStjCej6CBgWAQLjE0xeeJycHyBGzMAotGKDFYcmzXH4wkkRwM7GU6miWk5ekOZkBIKzfmCtEmxEarAAWy5bDDFrUWl0fsRADc2BhhBbXO5saRDQnkNizajHVabcE7QSiU6S_JXTSFHSGQZPSzc-gA0L-Ij0KGI1GYxodFXgsnU-nPIoszn4fnzUXMS2cXjy46TM6Kfg3R6vYym77sW2g9iu9Se9HHbGB_P0MO08unH4J8Fs-hQaQANxAA
	⚠ 请注意，该图表不是 Apache ECharts 官方示例，而是由用户代码生成的。请注意鉴别其内容。
-->
<!DOCTYPE html>
<html lang="en" style="height: 100%">
<head>
  <meta charset="utf-8">
</head>
<body style="height: 100%; margin: 0">
  <div id="container" style="height: 100%"></div>

  
  <script type="text/javascript" src="https://registry.npmmirror.com/echarts/5.5.1/files/dist/echarts.min.js"></script>
  
  <!-- Uncomment this line if you want to dataTool extension
  <script type="text/javascript" src="https://registry.npmmirror.com/echarts/5.5.1/files/dist/extension/dataTool.min.js"></script>
  -->
  <!-- Uncomment this line if you want to use gl extension
  <script type="text/javascript" src="https://registry.npmmirror.com/echarts-gl/2/files/dist/echarts-gl.min.js"></script>
  -->
  <!-- Uncomment this line if you want to echarts-stat extension
  <script type="text/javascript" src="https://registry.npmmirror.com/echarts-stat/latest/files/dist/ecStat.min.js"></script>
  -->
  <!-- Uncomment this line if you want to echarts-graph-modularity extension
  <script type="text/javascript" src="https://registry.npmmirror.com/echarts-graph-modularity/2/files/dist/echarts-graph-modularity.min.js"></script>
  -->
  <!-- Uncomment this line if you want to use map
  <script type="text/javascript" src="https://registry.npmmirror.com/echarts/4.9.0/files/map/js/world.js"></script>
  -->
  <!-- Uncomment these two lines if you want to use bmap extension
  <script type="text/javascript" src="https://api.map.baidu.com/api?v=3.0&ak=YOUR_API_KEY"></script>
  <script type="text/javascript" src="https://registry.npmmirror.com/echarts/5.5.1/files/dist/extension/bmap.min.js"></script>
  -->

  <script type="text/javascript">
    var dom = document.getElementById('container');
    var myChart = echarts.init(dom, 'dark', {
      renderer: 'canvas',
      useDirtyRect: false
    });
    var app = {};
    
    var option;

    option = {
  legend: {},
  tooltip: {},
  dataset: {
    source: [
      ['购房者职业', '2018', '2019', '2020', '2021', '2022', '2023'],
      ['科学家', 86.5, 92.1, 85.7, 83.1, 73.4, 55.1],
      ['人民教师', 41.1, 30.4, 65.1, 53.3, 83.8, 98.7],
      ['医生', 24.1, 67.2, 79.5, 86.4, 65.2, 82.5],
      ['公务员', 55.2, 67.1, 69.2, 72.4, 53.9, 39.1]
    ]
  },
  series: [
    {
      type: 'pie',
      radius: '20%',
      center: ['25%', '30%']
      // No encode specified, by default, it is '2012'.
    },
    {
      type: 'pie',
      radius: '20%',
      center: ['75%', '30%'],
      encode: {
        itemName: '购房者职业',
        value: '2021'
      }
    },
    {
      type: 'pie',
      radius: '20%',
      center: ['25%', '75%'],
      encode: {
        itemName: '购房者职业',
        value: '2022'
      }
    },
    {
      type: 'pie',
      radius: '20%',
      center: ['75%', '75%'],
      encode: {
        itemName: '购房者职业',
        value: '2023'
      }
    }
  ]
};

    if (option && typeof option === 'object') {
      myChart.setOption(option);
    }

    window.addEventListener('resize', myChart.resize);
  </script>
</body>
</html>